package cn.lzj.test;

import cn.lzj.pojo.Evaluate;
import cn.lzj.pojo.User;
import cn.lzj.service.User.UserService;
import cn.lzj.service.User.impl.user.UserServiceImpl;
import cn.lzj.service.base.RegisterService;
import cn.lzj.service.base.impl.registerServiceImpl;
import cn.lzj.service.business.FeedbackService;
import cn.lzj.service.business.Impl.FeedbackServiceImpl;
import org.junit.jupiter.api.Test;


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class testFeedBack {
//    @Test
//    public void test() throws ParseException {
//        FeedbackService feedbackService = new FeedbackServiceImpl();
//
//        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
//        Date date = simpleDateFormat.parse("2023-12-22");
//        Evaluate evaluate = new Evaluate(1, 1, 1001, "产品很好，孩子很满意。", date);
//
////        feedbackService.addFeedbackEvaluate(evaluate);
//        System.out.println(feedbackService.delFeedbackEvaluate(1, 1));
//
//    }

    @Test
    public void testRegister(){
        RegisterService registerService = new registerServiceImpl();
        User user = new User(10, "carrot", "carrot", "123456", "13627720813", "null", "null", "null");
        registerService.registerUser(user);

    }
}
